home *** CD-ROM | disk | FTP | other *** search
/ Champak 50 / Volume 50 - JOGO DISK .iso / Games / miffypuzzle.swf / scripts / DefineButton2_37 / BUTTONCONDACTION on(release).as
Text File  |  2007-09-27  |  909b  |  44 lines

  1. on(release){
  2.    i = 1;
  3.    while(i < 10)
  4.    {
  5.       if(i <= 9)
  6.       {
  7.          var thePuzzlePiece = "_root.p00" + i + ".whitelines";
  8.          tellTarget(thePuzzlePiece)
  9.          {
  10.             _visible = 1;
  11.          }
  12.          var thePuzzlePiece = "_root.p00" + i + ".blackLines";
  13.          tellTarget(thePuzzlePiece)
  14.          {
  15.             _visible = 1;
  16.          }
  17.       }
  18.       else
  19.       {
  20.          var thePuzzlePiece = "_root.p0" + i + ".whitelines";
  21.          tellTarget(thePuzzlePiece)
  22.          {
  23.             _visible = 1;
  24.          }
  25.          var thePuzzlePiece = "_root.p0" + i + ".blackLines";
  26.          tellTarget(thePuzzlePiece)
  27.          {
  28.             _visible = 1;
  29.          }
  30.       }
  31.       i++;
  32.    }
  33.    if(_root.puzzleNumber <= 2)
  34.    {
  35.       _root.puzzleNumber += 1;
  36.    }
  37.    else
  38.    {
  39.       _root.puzzleNumber = 1;
  40.    }
  41.    newPuzzle = 1;
  42.    gotoAndPlay(1);
  43. }
  44.